From 01cd0482ccb3167e2801f3ace4a2e81490892d89 Mon Sep 17 00:00:00 2001 From: Cedric Bosdonnat Date: Fri, 2 Dec 2016 16:08:36 +0100 Subject: [PATCH] libxl/libxl_save_callout.c: used LOG*D functions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Use LOG*D logging functions where possible instead of the LOG* ones. Signed-off-by: Cédric Bosdonnat Acked-by: Wei Liu --- tools/libxl/libxl_save_callout.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/libxl/libxl_save_callout.c b/tools/libxl/libxl_save_callout.c index 2e6267d519..46b892c626 100644 --- a/tools/libxl/libxl_save_callout.c +++ b/tools/libxl/libxl_save_callout.c @@ -294,8 +294,8 @@ static void helper_stdout_readable(libxl__egc *egc, libxl__ev_fd *ev, int rc, errnoval; if (revents & (POLLERR|POLLPRI)) { - LOG(ERROR, "%s signaled POLLERR|POLLPRI (%#x)", - shs->stdout_what, revents); + LOGD(ERROR, shs->domid, "%s signaled POLLERR|POLLPRI (%#x)", + shs->stdout_what, revents); rc = ERROR_FAIL; out: /* this is here because otherwise we bypass the decl of msg[] */ @@ -339,14 +339,14 @@ static void helper_exited(libxl__egc *egc, libxl__ev_child *ch, if (shs->need_results) { if (!shs->rc) { - LOG(ERROR,"%s exited without providing results",what); + LOGD(ERROR,shs->domid,"%s exited without providing results",what); shs->rc = ERROR_FAIL; } } if (!shs->completed) { if (!shs->rc) { - LOG(ERROR,"%s exited without signaling completion",what); + LOGD(ERROR,shs->domid,"%s exited without signaling completion",what); shs->rc = ERROR_FAIL; } } -- 2.30.2